<extend name="common:commonTemplate" />

<block name="main_content">
<div class="content2">
    <div class="my_header">
        <span class="portrait"><img src="/Public/images/lb.jpg" alt=""/></span>
        <div class="my_info">
           <p>{$promoter_en.real_name}</p>
        </div>
        <a href="/promoter/scanjoin?share_code={$promoter_en.share_code}"><div class="my_wechat"></div></a>
    </div>
    <div class="money_computer">
        <p class="mymoney m1">
            <span class="my_dt">帐户余额</span>
            <span class="my_num">{$promoter_en.amount}</span>
        </p>
        <p class="mymoney m2">
            <span class="my_dt">可提现余额</span>
            <span class="my_num">{$promoter_en.withdraw_amount}</span>
        </p>
    </div>
    
    <div class="my_list">
        <a class="my_nav01" href="/promoter/account">我的帐户</a>
        <if condition="$isShowSubRevenueManager eq 1">
        <a class="my_nav01" href="/promoter/subRevenueManager">分成比例管理</a>
        </if>
        <a class="my_nav02" href="/order/orderlist">我的订单</a>
        <!--<a class="my_nav03" href="/index/noticelist">网站公告</a>-->
        
        <if condition="$isShowSubRevenueManager eq 1">
            <a class="my_nav03" href="/promoter/scanjoin">推荐成为推广人</a>
        </if>
    </div>

    <div class="my_list">
		<a class="my_nav02" href="/Promoter/info?promoter_id={$promoter_en.promoter_id}">个人信息</a>
        <a class="my_nav04" href="/Promoter/changePwd">修改密码</a>
    </div>


    <div class="loginout">
        <a href="#" class="loginout_btn">退出登录</a>
    </div>

</div>
<div class="fixnav">
    <a href="/admin/home" class=""><img src="/Public/images/menu_01.png" alt=""/><span>首页</span></a>
    <a href="/order/orderlist" class="focus"><img src="/Public/images/menu_02.png" alt=""/><span>所有订单</span></a>
    <a href="/promoter/center" class="active"><img src="/Public/images/menu_actiive_03.png" alt=""/><span>个人中心</span></a>
</div>
</block>

<block name="inner_script">

<script type="text/javascript">
    (function () {
        document.documentElement.style.fontSize = (document.body.offsetWidth/320) * 14 + 'px';
    })();
    
    $(document).ready(function(){
    	$('.loginout_btn').bind('click', function(){
    		
    		var result = AdminService.Logout();
    		
    		if(result.IsSuccess == 0){
    			alert(result.ErrorMsg);
    			return;
    		}
    		else{
    			location.reload();
    		}
    	});
    });
</script>
</block>